package pl.com.qapps.datastore.berkeley;

import java.io.IOException;
import java.util.Arrays;

import pl.com.qapps.datastore.BytesHelper;


import com.google.appengine.api.datastore.AccessibilityHelper;

public class SerializationTest {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		String kind = "Person";
		byte[] bytes = AccessibilityHelper.serializeTypeAsString(kind);

		System.out.println(Arrays.toString(bytes));

		System.out.println(Arrays.toString(BytesHelper.serialize(kind)));
		System.out.println(Arrays.toString(BytesHelper.serialize(kind)));
		System.out.println(Arrays.toString(BytesHelper.serialize("Domek")));
		System.out.println(Arrays.toString(BytesHelper.serialize("ZZZ")));
		System.out.println(Arrays.toString(BytesHelper.serialize("Perso")));
		System.out.println(Arrays.toString(BytesHelper.serialize("Persoo")));
		System.out.println(Arrays.toString(BytesHelper.serialize("Personn")));
		System.out.println(Arrays.toString(BytesHelper.serialize("Person ")));
		System.out.println(Arrays.toString(BytesHelper.serialize(1L)));
		System.out.println(Arrays.toString(BytesHelper.serialize(2L)));
		System.out.println(Arrays.toString(BytesHelper.serialize(3L)));
		System.out.println(Arrays.toString(BytesHelper.serialize(10L)));
		System.out.println(Arrays.toString(BytesHelper.serialize(11L)));
		System.out.println(Arrays.toString(BytesHelper.serialize(45621L)));
	}

}
